/*
** gethotky.c
**
** Pictor, Version 1.51, Copyright (c) 1992-94 SoftCircuits
** Redistributed by permission.
*/

#include <stdio.h>
#include <string.h>
#include "pictor.h"

/*
** Returns the hotkey (the alpha-numeric character following
** the first '~') from str or 0 if str has no hotkey.
*/
int gethotkey(char *str)
{
	int c = 0;
	char *ptr;

	ptr = strchr(str,'~');

	if(ptr != NULL)
		c = (int)*(ptr + 1);

	return(c);

} /* gethotkey */
